import request from "@/utils/request";
import axios from 'axios'
//首页统计
export function statistics(data) {
  return request({
    url: "/count_page_api",
    method: "get",
    params: data,
  });
}
//首页列表数据
export function queryGoods(data) {
  // console.log(data, "123456789");
  return request({
    url: "/advertisements_page_api",
    method: "get",
    params: data,
  });
}
export function queryIndent(data) {
    return request({
      url: "/indent_page_api",
      method: "get",
      params: data,
    });
  }
//店家页
export function queryManager(data) {
  return request({
    url: "/merchant_page_api",
    method: "get",
    params: data,
  });
}
//店家页添加
export function addManager(data) {
    return request({
      url: "/merchant_page_api",
      method: "post",
      params: data,
    });
  }


//上传确定接口
export function querys(data) {
  console.log(data, "确定数据");
  // console.log(id);
  return axios({
    url: "/upload_qualification_certificate_api",
    method: "post",
    data: data,
  });
}
//上传接口
export function qqrey(id) {
  console.log(id);
  return request({
    url: "/upload_qualification_certificate_button_api",
    method: "get",
    params: id,
  });
}
//搜索接口
export function querySearch(data) {
  return request({
    url: "/search_api",
    method: "get",
    params: data,
  });
}
//编辑接口
export function modifyInterface(data) {
  console.log(data, "dtable");
  return request({
    url: "/modify_user_api",
    method: "post",
    params: data,
  });
}
//客户页数据
export function queryCustom(data) {
  return request({
    url: "/custom_page_api",
    method: "get",
    params: data,
  });
}
//省市县列表数据
export function directory_api(data) {
  return request({
    url: "/directory_api",
    method: "get",
    params: data,
  });
}
//上传资质按钮
export function upload_qualification(data) {
  console.log(data, "data");
  return request({
    url: "/file_upload_api",
    method: "post",
    params: data,
  });
}
//店家新增
export function store_register(data) {
    return request({
      url: "/store_register_api",
      method: "POST",
      params: data,
    });
  }
//修改图片
export function modify_image(data) {
    return axiosFile({
        url: "/modify_image_api",
        method: "POST",
        data: data,
      });
    }